<?php
namespace app\mobile\validate;

use think\Validate;

/**
 * Class Member
 * @package app\mobileWeb\validate  会员数据
 */
class Member extends Validate
{
    protected $rule = [
        'username|账号'  =>    'require',
        'password|密码'    =>  'require',
        'confirmPassword|确认密码'    =>  'require|confirm:password',
    ];

    protected $message = [
        'username.require'   =>  '账号不能为空',
        'password.require' =>  '密码不能为空',
        'confirmPassword/require'  =>  '确认密码不能为空',
        'confirmPassword.confirm'     =>  '两次密码输入的不一致',

    ];

    protected $scene = [
        'update_password'   =>  ['username','password','confirmPassword'],
    ];
}